let centerTop = document.querySelector('.center-left-top-2')
let leftsTop = echarts.init(centerTop)
let TopBottom = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow'
        }
    },
    legend: {},
    grid: {
        left: '5%',
        right: '4%',
        bottom: '3%',
        top: '8%',
        containLabel: true
    },
    xAxis: {
        show: false
    },
    yAxis: {
        type: 'category',
        data: ['微博', '网站', '新闻', '贴吧', '论坛']
    },

    series: [

        {
            type: 'bar',
            data: [19325, 23438, 31000, 121594, 134141],
            itemStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
                        offset: 0,
                        color: '#35aeab'
                    },
                    {
                        offset: 0.8,
                        color: '#99c087'
                    }])
                }
            }
        }
    ]
};
leftsTop.setOption(TopBottom)